import React from 'react'
import { HashRouter as Router, Route, Switch } from 'react-router-dom'
import Login from './pages'
import Register from './pages/register'
import Order from './pages/order'
import OrderType from './pages/orderType'
import PersonDetail from './pages/personDetail'
import Jiangli from './pages/jiangli'
import ChangePas from './pages/changePas'
import Member from './pages/member'
 
const router = () => {
    return (
        <Router>
            <Switch>
                <Route path="/" component={Login} exact />
                <Route path="/register" component={Register}/>
                <Route path="/order/:type" component={Order} />
                <Route path="/orderType" component={OrderType} />
                <Route path="/person" component={PersonDetail} />
                <Route path="/jiangli" component={Jiangli} />
                <Route path="/changePas" component={ChangePas} />
                <Route path="/member" component={Member} />
            </Switch>
        </Router>
    )
}

export default router